package com.example.component;

import com.example.interfaces.ComputeClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by Empty on 2016/9/7.
 * <p>
 * {@link org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker}
 * 断路器
 * <p>
 */
@Component
public class ComputeClientHystrix implements ComputeClient {

    @Override
    public Integer add(@RequestParam(value = "a") Integer a, @RequestParam(value = "b") Integer b) {
        return -9999;
    }
}
